#!/bin/bash

envsubst '$SITE $CLIENT_TOKEN' < /home/ruoyi/dist/index.html > /home/ruoyi/dist/index.html.tmp
mv /home/ruoyi/dist/index.html.tmp /home/ruoyi/dist/index.html
gzip -kf /home/ruoyi/dist/index.html

nginx -g "daemon off;"
